package com.msb.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.utils.PageUtils;
import com.msb.common.vo.CommonPageReq;
import com.msb.common.vo.CommonResult;
import com.msb.mall.core.entity.product.AttrEntity;
import com.msb.mall.core.vo.product.AttrGroupRelationVo;
import com.msb.mall.core.vo.product.AttrResponseVo;
import com.msb.mall.core.vo.product.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author leixu
 * @email xuleiwolf@163.com
 * @date 2024-04-19 10:08:56
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    PageUtils getNoAttrRelation(CommonPageReq<Map<String, Object>> req, Long attrGroupId);

    void deleteRelation(List<AttrGroupRelationVo> vos);

    void saveAttr(AttrVO vo);

    void updateBaseAttr(AttrVO vo);

    CommonResult queryBasePage(CommonPageReq<Map<String, Object>> req, Long catelogId, String attrType);

    AttrResponseVo getAttrInfo(Long attrId);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

